package com.ys.web.entity;
// Generated 2017-3-7 9:21:28 by Hibernate Tools 4.0.0

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 行业表
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "industry", catalog = "ysanalyze")
public class Industry implements java.io.Serializable {

	private Integer id;
	/**行业名称*/
	private String industryName;	
	/**
	 * 行业是否同步到易数宝
	 * "1"：已同步
	 * "0": 未同步
	 */
	private String isIndustryToYsbSynchronized;
	/**二级行业备注*/
	private String secondIndustry;
	

	public Industry() {
	}

	public Industry(String industryName) {
		this.industryName = industryName;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "industry_name", unique=true, nullable = false, length = 100)
	public String getIndustryName() {
		return this.industryName;
	}

	public void setIndustryName(String industryName) {
		this.industryName = industryName;
	}

	/**
	 * @return the isIndustryToYsbSynchronized
	 */
	@Column(name = "is_industry_to_ysb_synchronized",length=2)
	public String getIsIndustryToYsbSynchronized() {
		return isIndustryToYsbSynchronized;
	}

	/**
	 * @param isIndustryToYsbSynchronized the isIndustryToYsbSynchronized to set
	 */
	public void setIsIndustryToYsbSynchronized(String isIndustryToYsbSynchronized) {
		this.isIndustryToYsbSynchronized = isIndustryToYsbSynchronized;
	}

	/**
	 * 二级行业备注
	 * @return
	 */
	@Column(name ="SECOND_INDUSTRY",nullable=true,length=50)
	public String getSecondIndustry() {
		return secondIndustry;
	}

	/**
	 * 二级行业备注
	 * @param secondIndustry
	 */
	public void setSecondIndustry(String secondIndustry) {
		this.secondIndustry = secondIndustry;
	}


}
